//
//  PKRadioWorksCollectionViewCell.m
//  PianKe
//
//  Created by lanou on 15/10/7.
//  Copyright (c) 2015年 lanou. All rights reserved.
//

#import "PKRadioWorksCollectionViewCell.h"
#import <UIImageView+WebCache.h>
@implementation PKRadioWorksCollectionViewCell
-(instancetype)initWithFrame:(CGRect)frame
{
    self=[super initWithFrame:frame];
    if (self) {
        _pictureImag=[[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 120, 120)];
        [self.contentView addSubview:_pictureImag];
        _worksName=[[UILabel alloc]initWithFrame:CGRectMake(0, 90, 120, 30)];
        _worksName.font=[UIFont systemFontOfSize:12];
        [self.contentView addSubview:_worksName];
        
    }
    return self;
}
-(void)setMoretingModel:(PKMainLessonMoreting *)moretingModel
{
    _moretingModel=moretingModel;
    [_pictureImag sd_setImageWithURL:[NSURL URLWithString:moretingModel.coverimg]];
    _worksName.text=moretingModel.title;
//    UITapGestureRecognizer *tapRecognized=[[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(clickItemPlayer:)];
//    [_pictureImag addGestureRecognizer:tapRecognized];
//    _pictureImag.userInteractionEnabled=YES;
//    
    
}
//-(void)clickItemPlayer:(UITapGestureRecognizer *)taprecognized
//{
//
//}
@end
